num = float(input("Enter a number: "))   #输入num
if num.is_integer():   #判断num是不是整型
    if (num % 2) == 0:   #如果n是偶数
       print("{0} is even ".format(int(num)))   #输出n是偶数
    else:
       print("{0} is odd ".format(int(num)))   #输出n是奇数
else:
    print("{0} is not an integer ".format(num))   #输出n不是整型